<!DOCTYPE html>
<html class="ui-page-login">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <title></title>
    <script src="__PUBLIC__/js/jquery.min.js"></script>
    <script src="__PUBLIC__/js/angular.js"></script>
    <script src="__PUBLIC__/common.js"></script>
    <script src="__PUBLIC__/home/plugins/layer/layer.js"></script>
    <script src="__PUBLIC__/mui/js/mui.min.js"></script>
    <link rel="stylesheet" href="__PUBLIC__/mui/css/mui.css">
    <style>

    </style>

</head>

<body ng-app="myApp" ng-controller="Ctrl" ng-cloak>
<header class="mui-bar mui-bar-nav" style="background:#f3363a;">
    <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left" style="color: white"></a>
  <!--  <a class="mui-icon  mui-pull-right toggle" style="color: white;font-size: 14px;line-height: 44px;margin: 0;padding: 0">代理登录</a>-->
    <h1 class="mui-title login-item" style="color: white">订单详情</h1>
</header>
<div style="height: 44px"></div>
<div style="height: 10px;background:#efeff4; "></div>
<div class="mui-page-content" style="margin-bottom: 50px;" >
    <ul class="mui-table-view">
        <li class="mui-table-view-cell">
            <a>订单号<span class="mui-pull-right">{{message.sn}}</span></a>
        </li>
        <li class="mui-table-view-cell">
            <a>会员账号<span class="mui-pull-right">{{message.fromaccount}}</span></a>
        </li>
        <li class="mui-table-view-cell">
            <a>会员姓名<span class="mui-pull-right">{{message.fromname}}</span></a>
        </li>


            <li class="mui-table-view-cell" ng-show="flg!=2">
                <a>所属代理账号<span class="mui-pull-right">{{message.toaccount}}</span></a>
            </li>
            <li class="mui-table-view-cell" ng-show="flg!=2">
                <a>所属代理姓名<span class="mui-pull-right">{{message.toname}}</span></a>
            </li>

        <div style="height: 4px;background:#efeff4; "></div>
        <li class="mui-table-view-cell"ng-show="flg!=2">
            <a>订单类型
                <span class="mui-pull-right" ng-show="message.ordertype == 1">会员订单</span>
                <span class="mui-pull-right" ng-show="message.ordertype == 2">代理审核</span>
                <span class="mui-pull-right" ng-show="message.ordertype == 3">代理报单</span>
            </a>
        </li>
        <li class="mui-table-view-cell">
            <a>支付类型
                <span class="mui-pull-right" ng-show="message.paytype == 0">未支付</span>
                <span class="mui-pull-right" ng-show="message.paytype == 1">微信</span>
                <span class="mui-pull-right" ng-show="message.paytype == 2">支付宝</span>
            </a>
        </li>
        <li class="mui-table-view-cell">
            <a>总价<span class="mui-pull-right">{{message.total}}</span></a>
        </li>
        <li class="mui-table-view-cell">
            <a>使用积分<span class="mui-pull-right">{{message.integral}}</span></a>
        </li>
        <li class="mui-table-view-cell">
            <a>实付款<span class="mui-pull-right">{{message.total-message.integral}}</span></a>
        </li>
        <div style="height: 4px;background:#efeff4; "></div>
        <li class="mui-table-view-cell">
            <a>收货人姓名<span class="mui-pull-right">{{message.name}}</span></a>
        </li>
        <li class="mui-table-view-cell">
            <a>收货人电话<span class="mui-pull-right">{{message.phone}}</span></a>
        </li>
        <li class="mui-table-view-cell">
            <a>收货人地址<span class="mui-pull-right">{{message.namepath}}</span></a>
        </li>
        <li class="mui-table-view-cell">
            <a>收货人详细地址<span class="mui-pull-right">{{message.address}}</span></a>
        </li>
        <div style="height: 4px;background:#efeff4; "></div>
        <li class="mui-table-view-cell">
            <a>物流公司<span class="mui-pull-right">{{message.logstname}}</span></a>
        </li>
        <li class="mui-table-view-cell">
            <a>物流单号<span class="mui-pull-right">{{message.logistics}}</span></a>
        </li>
    </ul>
</div>
<script>
    var app = getApp('myApp', []);
    app.controller('Ctrl', function($scope,$http) {
        $scope.flg= getUrlParam('flg');
        $http({
            method: 'POST',
            data:{'id':getUrlParam('id'),'flg':getUrlParam('flg')},
            headers: {'Content-Type': 'application/x-www-form-urlencoded'},
            transformRequest: function (obj) {
                var str = [];
                for (var p in obj) {
                    str.push(encodeURIComponent(p) + "=" + encodeURIComponent(obj[p]));
                }
                return str.join("&");
            },
            url: "/index.php/Home/OnlineOrder/orderDetail"
        }).then(function successCallback(response) {
            $scope.message = response.data.data
            console.log(response.data.data)
        }, function errorCallback(response) {
        })
    })
</script>
<include file="./Application/Home/View/pub/agentfoot.html" name="m"/>
</body>
</html>
